import java.io.FileNotFoundException;
import java.io.IOException;


public class Pergunta extends Arquivo {
        protected String[] X;
        protected static int pontuacao;
        private String fileName = "as\\questoes2.txt";
        public Pergunta() throws FileNotFoundException, IOException {
                X = selecionarALL(fileName);
        }

        public String getX(int a) {
                return X[a];
        }
        
        public String getResposta(){
                return X[5];
        }
        
        public void atualizarRank() {
                pontuacao+=50;
        }
        
        public int pontuacaoTotal() {
                return pontuacao;
        }
        
        public void imprimir() {
                System.out.println(pontuacao);
        }
}